package com.ess.project.examine.personnel.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ess.framework.aspectj.lang.annotation.Excel;
import com.ess.framework.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

/**
 * @Description:
 * @Date: Created in 2:42 下午 2021/3/6
 * @Author: daihui
 * @Modified By:
 */
@Data
@TableName(value = "exam_personnel")
public class ExaminePersonnelEntity extends BaseEntity {

    /**
     * ID
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer personnelId;

    /**
     * 序号
     */
    @ExcelProperty(index = 0)
    @TableField(exist = false)
    private Integer serialNum;

    /**
     * 姓名
     */
    @Excel(name = "姓名")
    @TableField(value = "exam_personnel")
    @ExcelProperty(index = 1)
    private String examPersonnel;

    /**
     * 出生年月日
     */
    @Excel(name = "出生年月日",dateFormat = "yyyy-MM-dd")
    @TableField(value = "birthday")
    @ExcelProperty(index = 2)
    private String birthday;

    /**
     * 年龄
     *  (由触发器根据生日自动计算)
     */
    @TableField(value = "age")
    @ExcelProperty(index = 3)
    private int age;

    /**
     * 性别
     */
    @Excel(name = "性别")
    @TableField(value = "gender")
    @ExcelProperty(index = 4)
    private String gender;

    /**
     * 考核类型: 引体向上/屈臂悬垂/俯卧撑
     * (由触发器根据生日自动计算)
     */
    @TableField(value = "type_of_exam")
    @ExcelProperty(index = 10)
    private String typeOfExam;


    /**
     * 人员类别 一类人员/二类人员/三类人员
     */
    @Excel(name = "人员类别")
    @TableField(value = "personnel_category")
    private String personnelCategory;

    /**
     * 是否参与考核
     */
    @TableField(value = "attend")
    private Integer attend;


}
